package cn.psvmc.cxzapi.model.order;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 订单快递表
 * @Author auto
 * @Date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_order_delivery")
public class TOrderDelivery implements Serializable {

    @Serial
    private static final long serialVersionUID = -6254848688844748617L;
    //订单快递id
    @TableId(value = "odid", type = IdType.AUTO)
    private Integer odid;

    //发货类型（1发货 2归还）
    @TableField("type")
    private Integer type;

    //快递公司类型（1顺丰2德邦99自提）
    @TableField("delivery_type")
    private Integer deliveryType;

    //快递单号
    @TableField("tracking_code")
    private String trackingCode;

    //发货时间
    @TableField("dispatch_time")
    private LocalDateTime dispatchTime;

    //订单号
    @TableField("order_code")
    private String orderCode;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //订单id
    @TableField(exist = false)
    private Integer orderId;

    //状态（0待付款1待风控2待发货3已发货4待归还5归还中6交易完成7已取消）
    @TableField(exist = false)
    private Integer orderStatus;

    //账单状态（0待支付1已支付）
    @TableField(exist = false)
    private Integer billStatus;

    //收货时间
    @TableField(exist = false)
    private String acceptTime;

    //支付宝唯一用户标识
    @TableField(exist = false)
    private String openid;


}
